﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ugrow_silverlight
{
    public partial class Register_thanks : UserControl
    {
        private Brush color;
        public Register_thanks()
        {
            InitializeComponent();
            App.Current.Host.Content.Resized += new EventHandler(Content_Resized);
            color = tb_here.Foreground;
        }

        void Content_Resized(object sender, EventArgs e)
        {

            this.Width = App.Current.Host.Content.ActualWidth;
            this.Height = App.Current.Host.Content.ActualHeight;

        }

        private void tb_here_MouseEnter(object sender, MouseEventArgs e)
        {
            tb_here.Foreground = new SolidColorBrush(Colors.Red);
            Cursor = Cursors.Hand;
        }

        private void tb_here_MouseLeave(object sender, MouseEventArgs e)
        {
            tb_here.Foreground = color;
            Cursor = Cursors.Arrow;
        }

        private void tb_here_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            register_subscribe1.Visibility = System.Windows.Visibility.Visible;
            register_subscribe1.CloseNexts();
        }

        public void CloseNexts()
        {
            this.register_subscribe1.Visibility = System.Windows.Visibility.Collapsed;
            this.register_subscribe1.register_payment1.Visibility = System.Windows.Visibility.Collapsed;
            this.register_subscribe1.register_payment1.register_userdata1.Visibility = System.Windows.Visibility.Collapsed;
            this.register_subscribe1.register_payment1.register_userdata1.register_thanksubs1.Visibility = System.Windows.Visibility.Collapsed;
        }
    }
}
